package cn.ssj.service.impl;

import cn.ssj.dao.StaffDao;
import cn.ssj.entity.Staff;
import cn.ssj.service.StaffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 * Created by Administrator on 2017-09-10.
 */
@Service
public class StaffServiceImpl extends BaseServiceImpl<Staff,Integer> implements StaffService{

    @Autowired
    private StaffDao dao;

    @Transactional
    public Staff insert(Staff entity) {
        return super.insert(entity);
    }

    @Transactional
    public Staff update(Staff entity) {
        return super.update(entity);
    }

    @Transactional
    public boolean delete(Integer id) {
        return super.delete(id);
    }
}
